<template>
  <div class="head-container">
    <div class="crud-opts">
      <el-input v-model="paramBean.msgTitle" clearable placeholder="输入标题搜索" style="width: 200px;" class="filter-item" @keyup.enter.native="sup_this.toQuery"/>
      <el-button class="filter-item" size="mini" type="success" icon="el-icon-search" @click="sup_this.toQuery">搜索</el-button>
      <el-button class="filter-item" size="mini" type="warning" icon="el-icon-refresh-left" @click="sup_this.resetQuery()">重置</el-button>
      <DataGridOpts :sup_this="sup_this" :search-enable="false" @refreshClick="refreshClick" @searchClick="searchClick" />
    </div>
  </div>
</template>

<script>
export default {
  props: {
    paramBean: {
      type: Object,
      required: true
    },
    sup_this: {
      type: Object,
      required: true
    }
  },
  data() {
    return {
      deleteLoading: false,
      submitLoading: false,
      destoryLoading: false
    }
  },
  methods: {
    refreshClick() {
      this.sup_this.init()
    },
    searchClick() {
      this.sup_this.toggleSearch()
    }
  }
}
</script>
